#if UNITY_WECHAT_GAME
using WeChatWASM;
namespace HBFramework
{
    public class StorageBehaviour_WxMiniGame : IStorageBehaviour
    {
        public void Init()
        {

        }
        public void Update()
        {

        }

        public string GetDataString(string key)
        {
            var json = WX.StorageGetStringSync(key, "");
            return json;
        }

        public void SetDataString(string key, string data)
        {
            WX.StorageSetStringSync(key, data);
        }

        public void ClearAll()
        {
            WX.StorageDeleteAllSync();
        }
    }
}
#endif